from infrastructure.drivers.browser import BrowserFactory, BrowserType
import time
import os
from selenium.webdriver.common.by import By


def demo():
    # os.environ['WDM_CDNURL'] = 'https://npm.taobao.org/mirrors/chromedriver'
    # print(os.environ['WDM_CDNURL'])
    time.sleep(5)
    driver = BrowserFactory.create_browser(BrowserType.CHROME)
    driver.get("http://localhost")
    time.sleep(5)
    driver.quit()


def demo2():
    print(By.XPATH)


if __name__ == '__main__':
    demo2()
